I want to create a function that will determine if there are any issues in a module (such as object types not matching the data in the objects). I have been able to get the work done that fills the skip list to hold each individual issue. Now, what I'd like to do, if possible, is to create a dialog box that displays these issues (with their object number) along with a button next to each to allow the user to make fixes directly from this dialog rather than needing to write down the numbers of the objects that have an issue. Is it possible to create the individual elements dynamically? I do have another option, but thought this would be easier for users to deal with so they can edit items individually.
Chris chrscote - Fri Dec 15 10:11:44 EST 2017 |
Re: Dynamic dialog box elements You can just create a new dialogbox and loop through all "issues" and create a button/label for each and store the button DBE in a skiplist together with the associated object/object number. In the button callback you can then check the callback DBE parameter with the skiplist and deduce which button for which object was pressed. But since there is no scrolling for dialog boxes you'll run into issues once you have "too many" issues. My suggestion would be either a listview or a treeview. You can add all objects and their issues to either of them and use a "select" callback to display addition information. The user would select a object from the listview and some textboxes/buttons/etc would be populated with information/enabled for the user to select further actions. |